package com.qf.cx.simplenms.link.rai.model;

import java.util.ArrayList;
import java.util.List;
import com.sun.jna.Structure;

public class WritePara extends Structure {
	
	public int antennaId;
	public int writeOpNum;
	public TagMaskInfo[] tagMaskInfo = new TagMaskInfo[2];
	public WriteOpInfo[] writeOp = new WriteOpInfo[RaiLimit.MAX_OP_NUM];
	
	{
		for(int i = 0; i < 2; i++)
		{
			tagMaskInfo[i] = new TagMaskInfo();
		}
		
		for(int i = 0; i < RaiLimit.MAX_OP_NUM; i++)
		{
			writeOp[i] = new WriteOpInfo();
		}
	}
	
	public static class ByValue  extends WritePara implements Structure.ByValue  { }		
	public static class ByReference extends WritePara implements Structure.ByReference { }
	
    @Override  
    protected List<String> getFieldOrder() {  
        List<String> a = new ArrayList<String>();  
        a.add("antennaId");   
        a.add("writeOpNum");  
        a.add("tagMaskInfo");  
        a.add("writeOp");  
        return a;  
    } 	
}
